import { defineStore } from 'pinia';
import { computed, ref } from 'vue';
export const idnumStore = defineStore("idnum",()=>{
    const idnum = ref("");
    const get_idnum = computed(()=>{
        idnum
    })
    const set_idnum = (params) => {
    idnum.value = params;
    }
    const set_null = () => {
        idnum.value = null;
    }
    return {idnum,get_idnum,set_idnum,set_null}
},{
    persist:{
        enable:true,
        key:'idnum',
        storage:sessionStorage,
        paths:['idnum']
    }
})